
<link href="__STATIC__/umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
<script type="text/javascript" charset="utf-8" src="__STATIC__/umeditor/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__STATIC__/umeditor/umeditor.min.js"></script>
<script type="text/javascript" src="__STATIC__/umeditor/lang/zh-cn/zh-cn.js"></script>

<ul class="breadcrumb">
  <li><a href="{:U(GROUP_NAME . '/Index/index')}">首页</a> <span class="divider">/</span></li>
  <li class="active">圈子申请</li>
</ul>

<form method="post" action="{:U(GROUP_NAME . '/Person/applyCircleHandle')}" id="applyCircleForm">

    <label class="control-label" for="docname">文献名</label>
    <div class="">
      <select name="docname" id="docname">
          <volist name="doc" id="d">
          <option value="{$d.d_id}">{$d.docname}</option>
          </volist>
      </select>
    </div>
    <label for="">申请理由:</label>
    <div type="text/plain" id="myEditor" style="height:240px;">
        
    </div>
    <input type="hidden" id="content" name="content">
    <br>
    <div class="">
      <button type="button" id="Submit" class="btn btn-primary span2" onclick="">添加</button>
    </div>

</form>

<script>
    //实例化编辑器
    var um = UM.getEditor('myEditor');
    um.addListener('blur',function(){
        $('#focush2').html('编辑器失去焦点了')
    });
    um.addListener('focus',function(){
        $('#focush2').html('')
    });

    $(function(){
        $('#Submit').click(function(){
            var content = UM.getEditor('myEditor').getContent();
            $("#content").val(content);
            alert(content);
            $("#applyCircleForm").submit();
        })
    })
</script> 
